package com.sina.microblog.events
{
	import flash.events.Event;

	/**
	 * 所有对新浪微博API的请求会以事件的形式返回给调用者。当API请求出现错误时，MicroBlog类会派发MicroBlogErrorEvent事件.
	 * 
	 * <p>每个MicroBlogErrorEvent事件都有一个message属性用于保存错误信息。</br>
	 * API请求与事件的对应关系请参照MicroBlog类的文档。</p>
	 * 
	 * @see com.sina.microblog.MicroBlog
	 */ 	
	public class MicroBlogErrorEvent extends Event
	{
		public static const LOGIN_ERROR:String = "loginError";
		
		public static const UPDATE_STATUS_ERROR:String = "updateStatusError";
		public static const UPLOAD_STATUS_ERROR:String = "uploadStatusError";
		public static const UPLOAD_URL_TEXT_ERROR:String = "uploadUrlTextError";
		
		public static const NET_WORK_ERROR:String = "networkError";
		
		public static const ANYWHERE_TOKEN_ERROR:String = "anywhereTokenError";
		
		
		public static const OAUTH_CERTIFICATE_ERROR:String = "oauthCertifcateError";
		
		public static const LOAD_GENERAL_API_ERROR:String = "loadGeneralApiError";
		
		public static const LOAD_PUBLIC_TIMELINE_ERROR:String = "loadPublicTimeLineError";
		public static const LOAD_FRIENDS_TIMELINE_ERROR:String = "friendsTimelineError";
		public static const LOAD_USER_TIMELINE_ERROR:String = "loadUserTimeLineError";
		public static const LOAD_USER_INFO_ERROR:String = "loadUserInfoError";
		
		public static const LOAD_MENSIONS_ERROR:String = "loadMensionsError";
		public static const LOAD_COMMENTS_TIMELINE_ERROR:String = "loadCommentsTimelineError";
		public static const LOAD_COMMENTS_BY_ME_ERROR:String = "loadCommentsByMeError";
		public static const LOAD_COMMENTS_TO_ME_ERROR:String = "loadCommentsToMeError";
		public static const LOAD_COMMENTS_ERROR:String = "loadCommentsError";
		public static const LOAD_COMMENTS_MENTIONS_ERROR:String = "loadCommentsMentionsError";
		public static const LOAD_BATCH_COMMENTS_ERROR:String = "loadBatchCommentsError";
		public static const LOAD_STATUS_COUNTS_ERROR:String = "loadStatusCountsError";
		public static const LOAD_STATUS_UNREAD_ERROR:String = "loadStatusUnreadError";
		public static const LOAD_HOT_REPOST_DAILY_ERROR:String = "loadHotRepostDailyError";
		public static const LOAD_HOT_REPOST_WEEKLY_ERROR:String = "loadHotRepostWeeklyError";
		public static const LOAD_HOT_COMMENT_DAILY_ERROR:String = "loadHotCommentDailyError";
		public static const LOAD_HOT_COMMENT_WEEKLY_ERROR:String = "loadHotCommentWeeklyError";
		
		public static const DELETE_STATUS_ERROR:String = "deleteStatusError";
		public static const LOAD_STATUS_INFO_ERROR:String = "loadStatusInfoError";
		public static const DELETE_COMMENT_ERROR:String = "deleteCommentError";
		public static const DELETE_COMMENT_BATCH_ERROR:String = "deleteCommentBatchError";
		public static const COMMENT_STATUS_ERROR:String = "commentStatusError";
		public static const REPOST_STATUS_ERROR:String = "repostStatusError";
		public static const REPLY_STATUS_ERROR:String = "replyStatusError";
		public static const RESET_STATUS_COUNT_ERROR:String = "resetStatusError";
		
		public static const LOAD_DIRECT_MESSAGES_RECEIVED_ERROR:String = "loadDirectMessagesReceivedError";
		public static const LOAD_DIRECT_MESSAGES_SENT_ERROR:String = "loadDicrectMessagesSentError";
		public static const SEND_DIRECT_MESSAGE_ERROR:String = "sendDirectMessageError";
		public static const DELETE_DIRECT_MESSAGE_ERROR:String = "deleteDirectMessageError";
		
		public static const LOAD_USER_COUNTS_ERROR:String = "loadUserCountsError";
		public static const LOAD_FRIENDS_INFO_ERROR:String = "loadFriendsInfoError";
		public static const LOAD_FRIENDS_IN_COMMON_ERROR:String = "loadFriendsInCommonError";
		public static const LOAD_FRIENDS_BILATERAL_ERROR:String = "loadFriendsBilateralError";
		public static const LOAD_FOLLOWERS_INFO_ERROR:String = "loadFollowersInfoError";
		public static const LOAD_FOLLOWERS_ACTIVE_ERROR:String = "loadFollowersActiveError";
		public static const LOAD_FRIEND_RELATION_ERROR:String = "loadFriendRelationError";
		
		public static const FOLLOW_ERROR:String = "followError";
		public static const CANCEL_FOLLOWING_ERROR:String = "cancelFollowingError";
		public static const CHECK_IS_FOLLOWING_ERROR:String = "checkIsFollowingError";
		
		public static const LOAD_FRIENDS_ID_LIST_ERROR:String = "loadFriendsIDListError";
		public static const LOAD_FOLLOWERS_ID_LIST_ERROR:String = "loadFollowersIDListError";
		
		public static const VERIFY_CREDENTIALS_ERROR:String = "verifyCredentialsError";
		public static const GET_RATE_LIMIT_STATUS_ERROR:String = "getRateLimitStatusError";
		public static const GET_SCHOOL_LIST_ERROR:String = "getSchollListError";
		public static const LOGOUT_ERROR:String ="logoutError";
		public static const UPDATE_PROFILE_ERROR:String = "updateProfileError";
		public static const UPDATE_PROFILE_IMAGE_ERROR:String = "updateProfileImageError";
		
		public static const LOAD_FAVORITE_LIST_ERROR:String = "loadFavoriteListError";
		public static const LOAD_ONE_FAVORITE_LIST_ERROR:String = "loadOneFavoriteListError";
		public static const LOAD_FAVORITE_LIST_BY_TAGS_ERROR:String = "loadFavoriteListByTagsError";
		public static const LOAD_FAVORITE_LIST_TAGS_ERROR:String = "loadFavoriteListTagsError";
		public static const ADD_TO_FAVORITES_ERROR:String = "addToFavoritesError";
		public static const REMOVE_FROM_FAVORITES_ERROR:String = "removeFromFavoritesError";
		public static const REMOVE_FROM_FAVORITES_BATCH_ERROR:String = "removeFromFavoritesBatchError";
		public static const UPDATE_FAVORITES_TAGS_ERROR:String = "updateFavoritesTagsError";
		public static const UPDATE_FAVORITES_TAGS_BATCH_ERROR:String = "updateFavoritesTagsBatchError";
		public static const REMOVE_FAVORITES_TAGS_BATCH_ERROR:String = "removeFavoritesTagsBatchError";
		
		public static const LOAD_TRENDS_ERROR:String = "loadTrendsError";
		public static const LOAD_TRENDS_HOURLY_ERROR:String = "loadTrendsHourlyError";
		public static const LOAD_TRENDS_DAYLY_ERROR:String = "loadTrendsDaylyError";
		public static const LOAD_TRENDS_WEEKLY_ERROR:String = "loadTrendsWeeklyError";
		public static const FOLLOW_TRENDS_ERROR:String = "followTrendsError";
		public static const CANCEL_TRENDS_ERROR:String = "cancelTrendsError";
		
		public static const ENABLE_NOTIFICATION_ERROR:String = "enableNotificationError";
		
		public static const LOAD_PROVINCE_CITY_ID_LIST_ERROR:String = "loadProvinceCityIdListError";	
		
		public static const LOAD_TAGS_ERROR:String = "loadTagsError";
		public static const LOAD_TAGS_BATCH_ERROR:String = "loadTagsBatchError";
		public static const LOAD_SUGGESTIONS_TAGS_ERROR:String = "loadSuggestionsTagsError";
		public static const ADD_TAGS_ERROR:String = "addTagsError";
		public static const REMOVE_TAGS_ERROR:String = "removeTagsError";
		public static const REMOVE_TAGS_BATCH_ERROR:String = "removeTagsBatchError";
		
		public static const UNREAD_COUNT_ERROR:String = "unreadCountError";		
		public static const EMOTIONS_ERROR:String = "emotionsError";
		public static const AT_USERS_ERROR:String = "atUsersError";
		public static const LOAD_STATUS_ERROR:String = "loadStatusError";
		public static const LOAD_LIST_ERROR:String = "loadListError";
		
		public static const LOAD_USERS_HOT_ERROR:String = "loadUsersHotError";
		public static const LOAD_USERS_MAY_INTERESTED_ERROR:String = "loadUsersMayInterestedError";
		public static const LOAD_USERS_BY_STATUS_ERROR:String = "loadUsersByStatusError";
		public static const LOAD_HOT_STATUS_ERROR:String = "loadHotStatusError";
		public static const LOAD_STATUS_REORDER_ERROR:String = "loadStatusReorderError";
		public static const LOAD_HOT_FAVORITES_ERROR:String = "loadHotFavoritesError";
		public static const MARK_NOT_INTERESTED_ERROR:String = "markNotInterestedError";
		
		public static const LOAD_CODE_2_LOCATION_ERROR:String = "loadCode2LocationError";
		public static const GET_CITY_ERROR:String = "getCityError";
		public static const GET_PROVINCE_ERROR:String = "getProvinceError";
		public static const GET_COUNTRY_ERROR:String = "getCountryError";
		
		public static const GET_BUS_LINE_ERROR:String = "getBusLineError";
		
		/**
		 * 请求失败后返回的错误信息
		 */ 
		public var message:String;
		
		/**
		 * 状态值
		 */
		public var status:int;
		
		public function MicroBlogErrorEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
	}
}